package com.huiqiao.lesson5.service;

import com.huiqiao.lesson5.dao.IRoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class RoleService {

    @Autowired
    @Qualifier("db1") // Bean 名称 或 类名首字母小写
    IRoleDao roleDao;

    public void getRole() {
        roleDao.getRole();
    }
}
